import http from '@/services/http';

export function getFilterList() {
  return http.get<Requestor.Response<Requestor.FilterResponse[]>>(
    '/api/admin/Shopbase/filter/list',
  );
}
export function getList<T>(params: ShopListManagementApi.ListParams) {
  return http.post<Requestor.ListResponse<T>>('/api/admin/Shopbase/list', {
    data: params,
  });
}
export function getInfo<T>(params: ShopListManagementApi.InfoParams) {
  return http.get<Requestor.Response<T>>('/api/admin/Shopbase/info', {
    params,
  });
}
export function create(params: ShopListManagementApi.CreateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Shopbase/create', {
    data: params,
  });
}
export function update(params: ShopListManagementApi.UpdateParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Shopbase/update', {
    data: params,
  });
}
export function remove(params: ShopListManagementApi.DeleteParams) {
  return http.post<Requestor.TeamplateResponse>('/api/admin/Shopbase/delete', {
    data: params,
  });
}
